package com.springboot.controller;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FallbackController {
	@RequestMapping("/fallback")
	public ResponseEntity fallback() {
		return ResponseEntity.status(HttpStatus.FORBIDDEN).body("Gateway触发熔断降级");
	}

}
